package com.whenjun.dto.login;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
public class PasswordUpdate implements Serializable {

    @NotEmpty(message = "password为空")
    @ApiModelProperty(value = "当前密码",required = true)
    private String password;

    @NotEmpty(message = "newPassword为空")
    @ApiModelProperty(value = "新密码",required = true)
    private String newPassword;
}
